Systematics in the formation of lanthanide halide compounds