President Barack Obama has invited one of Donald Trump's fiercest global critics for talks a day after the businessman formally accepts the Republican presidential nomination.