Chemically and Mechanically Controlled Single-Molecule Switches using Spiropyrans.