Alkali metal recognition induced isomerization of spiropyrans