Photocatalytic–electrocatalytic dual hydrogen production system