Westerners worried about growing disparities at home shouldn’t overlook the transformative effect of liberalisation in India and China