Nanoimprint lithography for optic fluidics with phase gratings for environmental monitoring application