Method for removing methane from gas mixtures