In rich countries, the middle class is getting smaller and smaller, generation by generation