An extension of the Judd-Ofelt theory to the field of lanthanide thermometry