Ultrafast bidirectional photoswitching of a spiropyran.