Intelligent rubber with tailored properties for self-healing and shape memory