Excitation-energy relaxation in photochromic indoline spiropyranes