Creep and recrystallization of large polycrystalline masses. III. Continuum theory of ice sheets