Molecular clusters in gaseous and liquid AlCl3