In-situ characterization of semiconductors using scanning probe microscopy techniques