An economical approach to four-dimensional variational data assimilation