Band-gap narrowing and electrochemical properties in N-doped and reduced anodic TiO2 nanotube arrays