Quadratic divergences in Kaluza–Klein theories