Nigerian president to visit South Africa after xenophobic attacks