Combining stochastic programming and optimal control to decompose multistage stochastic optimization problems