Lattice relaxation and its impact on magnetic properties of FePt thin film