California declares emergency as wildfires rage across west