Robust and flexible planning of power system generation capacity