Specific features of formation of silver nanoparticles in the polymer matrix