Mixing and sampling in a microfluidic channel using rotating magnetic microbeads