An electrochemical strategy to incorporate nitrogen in nanostructured TiO2 thin films: modification of bandgap and photoelectrochemical properties