An integrated apparatus for production and measurement of molecular hydrogen