Excitons in quantum wires