Optimized structures of the LiXS2 (X = Ga, In) compounds before ((a), (c)) and after ((b), (d)) delithiation.