Determining the equivalent packing diameter of two-dimensional shapes