Spain scorched by earliest heatwave in 40 plus years