Dynamics of the spiropyran-merocyanine conversion in solution