Portmanteau tests based on quadratic forms in the autocorrelationds