Linear and nonlinear optical properties of realistic quantum-wire structures: The dominant role of Coulomb correlation