Electronic excitations in quantum wires and dots