Electronic properties of semiconductor nanostructures probed by scanning tunneling microscopy