Influence of the potential range on the aggregation of colloidal particles