Coal partial gasification studies applied to co-production of hydrogen and electricity