Dynamics and stability in coevolutionary ecological systems. I. Community stability and coevolutionarily stable states.