Cornish–Fisher expansions for sample autocovariances and other functions of sample moments of linear processes