Theoretical study of the adsorption of silver atoms on the (111) face of silicon