Western states battle wildfires, record heat and power shortages