Impact of Surfactant Structure and Oil Saturation on the Behavior of Dense CO2 Foams in Porous Media