The M-theory two-brane in AdS4×S7 and AdS7×S4