Magnetic X-Ray Dichroism and Anisotropy Energy of Fe and Co Multilayers