Effects of incorporating renewable energy sources into the electricity grid