Development of adaptive granular metamaterials for impact mitigation