Conversion of methanol into hydrocarbons