Stimuli-Responsive Hydrogels and Their Application to Functional Materials