Functionalization of stretchable networks with sensors and switches for composite materials