Multifunctional materials for optics, sensing and actuating