The population ecology of rare species