added gwspectrogram to calculate spectrogram from time-series data