Spectral analysis of stationary solutions of the Cahn--Hilliard equation