Australia swelters through long heatwave