Text this: Solid state photochromism of spiropyrans