Spin transport in an FM/Bi/FM junction