Effects of bulk and surface defects on the photocatalytic performance of size-controlled TiO2 nanoparticles