First-principles investigation of the very large perpendicular magnetic anisotropy at Fe|MgO and Co|MgO interfaces