Risk-Averse Optimization and its Applications in Power Grids with Renewable Energy Integration