Text this: Impurity-related linear and nonlinear optical response in quantum-well wires with triangular cross section