Surface structure of high- and low-index GaAs surfaces: direct formation of quantum-dot and quantum-wire structures