Effect of nature and location of defects on bandgap narrowing in black TiO 2 nanoparticles