A coloring tool for spiropyrans: solid state metal–organic complexation versus salification