added window shape check for stft()