Origin and dynamical evolution of Neptune Trojans: I. formation and planetary migration