Understanding structure-activity relationships in linear polymer photocatalysts for hydrogen evolution