A Universal Understanding Of Thermal Quenching In Eu2+ And Ce3+ Doped Phosphors