Structure Optimization of Power Systems with Renewable Energy Sources