Scanning tunneling optical spectroscopy in mercury cadmium telluride and related compounds