A comprehensive model of a fluidized bed membrane reactor for small-scale hydrogen production