A scenario-based stochastic programming approach for technology and capacity planning