Production of hydrogen or of gaseous mixtures containing a substantial proportion of hydrogen