Spectral theory of second-order almost periodic differential operators and its relation to classes of nonlinear evolution equations