An adaptive firefly algorithm for multilevel image thresholding based on minimum cross-entropy