Origin of interfacial perpendicular magnetic anisotropy in MgO/CoFe/metallic capping layer structures