Solar and wind power generation has set a new record, with more power generated than coal for the first five months of 2023.