Elucidating the mechanisms of acidochromic spiropyran-merocyanine interconversion.