Scanning tunneling optical spectroscopy of semiconductors