Spin–flip transistor