Graded Elastic Metamaterials for Energy Harvesting