Four-dimensional assimilation in the presence of baroclinic instability