Erick intensifies into Category 3 hurricane as it approaches Mexico