Ab initio molecular dynamics with maximally localized Wannier functions