Symmetry analysis of magneto-optical effects: The case of x-ray diffraction and x-ray absorption at the transition metal L2,3 edge