Investigation of particle formation and superstructure development in FePt nanoparticles and their effect on magnetic properties