Comparison between Multistage Stochastic Optimization Programming and Monte Carlo Simulations for the Operation of Local Energy Systems