Quantification of Spectral Similarity: Towards Automatic Spectra Verification