Measurement of the cross section for electroweak production of a Z boson, a photon and two jets in proton-proton collisions at \( \sqrt{\mathrm{s}} \) = 13 TeV and constraints on anomalous quartic couplings