Mexico stops importing gasoline by this year after improving its domestic capacity to refine crude oil.