The Pr 3+ and Tb 3+ ground state locations in compounds obtained from thermoluminescence and intervalence charge transfer studies