Redistribution of electron energies at the interface between laser-radiation-filled space and vacuum