A Methodology for the Design of Flexible Renewable-Based Utility Plants