Programmable Granular Metamaterials for Reusable Energy Absorption