Exciton effects on the nonlinear optical rectification in one-dimensional quantum dots