Wildfires have forced hundreds of evacuations in Arizona and California as excessive heat grips the United States.