Scanning tunneling microscopy simulations of nitrogen- and boron-doped graphene and single-walled carbon nanotubes.