The dynamical theory of coevolution: A derivation from stochastic ecological processes