Membrane Reactors for Energy Applications and Basic Chemical Production