Scattering operators for E1-E2 x-ray resonant diffraction