Electron energy distribution in photolytically pumped lasers