Analytical calculations, description of numerical methods and supplementary figures from The evolution of age-specific resistance to infectious disease (2023)