Spectral Analysis of Fokker--Planck and Related Operators Arising From Linear Stochastic Differential Equations