Homogenization and singular limits for the complete Navier–Stokes–Fourier system