Geometrically induced electron-electron interaction in semiconductor nanowires