Western US wildfires threaten thousands of homes