Correlation of thermally stimulated luminescence with radio frequency surface resistance of high-temperature superconductors