Hankel determinants of linear combinations of moments of orthogonal polynomials