Contract design in electricity markets with high penetration of renewables: A two-stage approach. (September 2022)