Modelling Enhanced Gas Recovery by CO$_2$ Injection in Partially-Depleted Reservoirs.