Photochromism based on reversible proton transfer