Thermally stimulated luminescence from commonly occuring impurity phases in high-temperature superconductors