Unravelling the role of lithium and nickel doping on the defect structure and phase transition of anatase TiO2 nanoparticles