The construction of next-generation matrices for compartmental epidemic models | Synapse