Adapting palettes to color vision deficiencies by genetic algorithm