Nucleation and growth of Ag and Pd on amorphous carbon by vapor deposition