Preparation and size control of silver nanoparticles by a thermal method