Synthesis of one-dimensional nickel perylene diimide/iron hydroxide nanohybrid as catalyst and precursor for efficient photocatalytic and electrocatalytic water oxidation