Sensitivity of forecast error to initial conditions using the adjoint method