Electrochemical synthesis of coaxial TiO2–Ag nanowires and their application in photocatalytic water splitting