Long transients in ecology: Theory and applications.