Added check for diagonal tensors to Spectrum

Added a check to Spectrum constructor to make sure it only constructs the spectrum from diagonal IQTensors.