Simultaneous optimal control and discrete stochastic sensor selection