Reversible photoswitching of encapsulated azobenzenes in water