Oil extends gains into fourth straight day on Middle East tensions