Some aspects of the role of surfactants in the formation of nanoparticles