A photocatalytic water splitting device for separate hydrogen and oxygen evolution