Spain has been hit by extreme heat in recent weeks with temperatures often topping 40 degrees Celsius