Origins of superstructure ordering and incommensurability in stuffed CoSn-type phases.