Impact of the Demographic and Educational Structure on Health Outcomes: A Prospective Analysis for the Portuguese Population