Spectral analysis of a class of second-order non-self-adjoint differential operators