Solution methods and bounds for two-stage risk-neutral and multistage risk-averse stochastic mixed-integer programs with applications in energy and manufacturing