Spain has declared a national emergency and France has drafted in the army as firefighters struggle to contain the infernos