Structural signatures of the insulator-to-metal transition in BaCo 1 − x Ni x S 2