Essays on Renewable Energy and Electricity Markets