Experimental study of the formation of molecular hydrogen and carbon dioxide on dust grain analogues