Non-equilibrium semi-empirical temperature in materials with thermal relaxation