Ergodic property of the chemostat: A stochastic model under regime switching and with general response function. (February 2018)