Analytical expressions of the collision frequency function for aggregation of magnetic particles