Compactification of D = 11 supergravity on spaces of exceptional holonomy