Photoelectrochemical processes on anodic layers