A class of metamaterials based on the tensegrity concept