Text this: Charging of inorganic glasses during irradiation and the energetics of their structure