An adaptive image enhancement technique based on firefly algorithm