An empirical relation fitting the position in energy of the lower d-band edge for Eu2+ or Ce3+ in various compounds