The index complex of a maximal subalgebra of a Lie algebra