Nucleation, growth and the intermediate layer in Ag/Si(100) and Ag/Si(111)