Monitoring the Fermi-level position within the bandgap on a single nanowire: A tool for local investigations of doping