Phase formation, microstructure, and hard magnetic properties of electrodeposited FePt films