Defect generation, d-d transition, and band gap reduction in Cu-doped TiO2 nanoparticles