Electronic properties of AFM-defined semiconductor nanostructures: quantum wires and single electron transistors