Photoelectrochemistry of bromonitrobenzenes: mechanism and photoelectrochemically-induced halex reactions