Leaders from three continents are gathering here for a major summit of BRICS, the informal grouping of nations that was created more than a decade ago to align the world’s top emerging economies but has struggled since to achieve diplomatic harmony, especially amid Russia’s invasion of Ukraine.