When was John excommunicated?