Separation of hydrogen-hydrocarbon gas mixtures using closed-loop gas expander refrigeration