Theoretical study of C-C bond formation in the methanol to gasoline process