Updated spectral kurtosis with a better formula for calculating the window length