Mathematical modelling of low-temperature hydrogen production with in situ CO2 capture