Structural phase transition study of FePt alloys using ab initio calculation