A multiscale approach to full-waveform inversion using a sequence of time-domain misfit functions