From molecular clusters to liquid structure in AlCl3 and FeCl3