Anisotropic optical properties of arbitrarily oriented quantum wires with arbitrary cross-sections