Effects of compositional variations on CO2 foam under miscible conditions