Surface treatment of titanium by in-situ anodizination and NiO photodeposition: enhancement of photoelectrochemical properties for water splitting and photocathodic protection of stainless steel