Optimal technology selection for the biogas upgrading to biomethane