Production of hydrogen by direct thermal decomposition of water