Cascaded lattice Boltzmann method for incompressible thermal flows with heat sources and general thermal boundary conditions