Method to Regenerate Ammonia for the Capture of Carbon Dioxide