Reversing the thermal stability of a molecular switch on a gold surface: ring-opening reaction of nitrospiropyran.