More than 10,000 people have been forced to evacuate as firefighters struggle to contain wildfires in central Spain.