Vaccination in age-structured populations I: The reproduction number