Wildfires across the western United States and Canada have put millions of people under air quality alerts, as thousands of firefighters battle the flames.