what caused the great schism and how did it end?