Near-field scanning optical microscopy and spectroscopy for semiconductor characterization