The evolution of sex roles in mate searching