Preparation of L10 ordered FePd, FePt, and CoPt thin films with flat surfaces on MgO(001) single-crystal substrates