State estimation for stochastic polynomial systems with switching in the state equation