which religion is associated with the concordat of worms the investiture controversy and the great schism during the middle ages