Chemical precipitation method for nanoparticle synthesis