Theoretical study on elementary reaction steps in the methanol-to-olefin process