Preparation and characterization of Cu-doped TiO2 materials for electrochemical, photoelectrochemical, and photocatalytic applications