A versatile enhanced genetic algorithm for planar array design