Nonequilibrium Green’s function approach to mesoscopic thermal transport