Estimating the codifference function of linear time series models with infinite variance