Gravar-mail: Generalizations of the ‘Linear Chain Trick’: incorporating more flexible dwell time distributions into mean field ODE models