Improving image segmentation quality through effective region merging using a hierarchical social metaheuristic