The Age of Infection: A Semi-Markov Framework for Developing Mechanistic Models of Malaria Epidemiology