Spontaneous compactification of a (4+d)-dimensional Kaluza-Klein theory into M4 × G/H for symmetric G/H