Interfacial properties of reservoir fluids and carbon dioxide with impurities