Integrated 3D hydrogel waveguide out-coupler by step-and-repeat thermal nanoimprint lithography : A promising sensor device for water and pH