Systematic study of aplanatic two-mirror telescopes. 2: the gregorian configuration