Scenario generation and reduction for long-term and short-term power system generation planning under uncertainties