On the regeneration of thermally regenerative ammonia batteries