Spectral analysis for base composition of DNA undergoing melting