Thermal and photochemical properties of 4',7-dihydroxyflavylium in water-ionic liquid biphasic systems: a write-read-erase molecular switch.