Functional Hydrogels and Their Application in Drug Delivery, Biosensors, and Tissue Engineering