Smart biomaterials with tailored properties