Ag films deposited on Si and Ti: How the film-substrate interaction influences the nanoscale film morphology