Switching dynamics of multistable visual perception: A time-varying stochastic model