Polydopamine inspired dual-functional templates to prepare photoanode with enhanced photoelectrochemical activity