Conductive scanning probe characterization and nanopatterning of electronic and energy materials