Organic-inorganic photoelectrochemical sensor based on aza-cope rearrangement reaction for formaldehyde