On the autocorrelation properties of truncated maximum-length sequences and their effect on the power spectrum