Phonon and electron temperature and non-Fourier heat transport in thin layers