Synthesis and characterization of biocompatible stimuli-responsive hydrogels