Phase composition depth profiles using spatially resolved energy dispersive X‐ray diffraction