Irradiation induced defects in glasses resulting in the photoionization of polyvalent dopants