The mechanics of energy dissipation in a three-dimensional graphene foam with macroporous architecture