Modelling the heating of the crystal lattice in semiconductors based on the maximum entropy principle