Electronic properties and atomic arrangement of the Ag/Si(111) interface