3d N=2 Chern-Simons-matter theory, Bethe ansatz, and quantum K-theory of Grassmannians