Population aging, socioeconomic development and social inequality