A model for the evaluation of the lanthanide excited state thermal ionization barrier in luminescent materials