Characterizing the next-generation matrix and basic reproduction number in ecological epidemiology