The use of the perimeter-area method to calculate the fractal dimension of aggregates