Ecosystems off track: rate-induced critical transitions in ecological models