The lattice vibrations of nearly incommensurate overlayers Ag on Ni(100) and Cu(100)