Luminescence and Valence of Tb Ions in Alkaline Earth Stannates and Zirconates Examined by X-ray Absorption Fine Structures.