Erdogan plans visit to Saudi Arabia, mending strained ties