When can a single-species, density-dependent model capture the dynamics of a consumer-resource system?