Synthesis of biodegradable thermo- and pH-responsive hydrogels for controlled drug release