Polymer-based photocatalytic hydrogen generation