Much of Western Australia is in the grips of extreme weather, with a heatwave scorching Perth and the central west.