Enhanced photoelectrochemical and photocatalytic activity by Cu2O/SrTiO3 p–n heterojunction via a facile deposition–precipitation technique