explain the shift of power from kings to nobles during the middle ages