The origins of tetrahedral coordination in molten and glassy ZnCl2 and other group-2B metal dihalides