At least eight people have died as a heat wave hits parts of Europe, with two dead in France, two in Italy and four in Spain, according to officials.