Text this: Lie group classification and exact solutions of the generalized Kompaneets equations