Sensitivity of forecast errors to initial and lateral boundary conditions