Theory of STM images of monolayer graphite on transition-metal surface