Modeling TiO2׳s refractive index function from bulk to nanoparticles