MolSpectra: Pre-training 3D Molecular Representation with Multi-modal Energy Spectra