Measuring electrical current during scanning probe oxidation