Offshore processing of co2-rich natural gas with supersonic separator