Effects of overlayer capping and lattice strain on perpendicular magnetic anisotropy of TM|FePt|MgO heterostructures