Multistate/Multifunctional Behaviour of 4’-Hydroxy-6-nitroflavylium: a Write-Lock/Read/Unlock/Enable-Erase Cycle Driven by Light and pH stimulation