Topographic and diffusion measurements of gold and platinum surfaces by scanning tunneling microscopy