Displacement characteristics of worm-like micelle CO2 foam and treatment of produced liquid