Method for thermochemical production of hydrogen from water. [barium iodide, carbon dioxide, ammonia, and water cycle]