Multistage Stochastic Programming and Its Applications in Energy Systems Modeling and Optimization