Hydrogel- and aerogel-based composites