Text this: Simulation of size effects on the optical properties of KTP nanoparticles