Effect of tip atomic and electronic structure on scanning tunneling microscopy/spectroscopy