Fabrication and optical properties of quantum dots and wires