Two-phase flow behaviour and relative permeability between CO2 and brine in sandstones at the pore and core scales