Shape-memory polymer metamaterials based on triply periodic minimal surfaces