Smart foam allows robotic hand to self-heal