Coupling of lateral and vertical electron motion in GaAs-AlxGa1-xAs quantum wires and dots.