Inverse Spin Hall Effect in Two-Terminal Device with Rashba Spin-Orbit Coupling