Spin Hall effect and spin-orbit coupling in ballistic nanojunctions