The M-Theory Two-Brane in AdS 4 × S 7 and AdS 7 × S 4