Resolvent estimates for non-self-adjoint differential operators in one dimension