Time-dependent Hamiltonian estimation for Doppler velocimetry of trapped ions