Spectral analysis of the complex cubic oscillator