Interplay between electronic and structural properties in the Pb/Ag(1 0 0) interface