Microfluidic refractometer with integrated optical fibers and end-facet transmission gratings