Stability of merocyanine-type photoacids in aqueous solutions