A stochastic economic growth model with health capital and state-dependent probabilities