Control of surface potential and hydroxyapatite formation on TiO2 scales containing nitrogen-related defects