by photo-electrolysis with or without external current source