The role of demographic changes in shaping measles epidemiology