Evolution of mate discrimination in a fish