Two-stage stochastic programming of decentralized energy systems