Shape Adaptation Through Soft-Matter Extended Phenotype Enhances Robots' Functionality