Manufacturing and design of smart polymer composites