Integration and characterization of LC/polymer gratings on glass and silicon platform