South Africa apologises to Nigeria after anti-migrant violence