Effects of ion mass and energy on the damage induced by an ion beam on graphite surfaces: a scanning tunneling microscopy study