Performance of a thermally regenerative ammonia-based battery using gradient-porous copper foam electrodes