Magnetic dichroisms in absorption and photoemission for magnetic characterization in x-ray photoelectron emission microscopy