Smart mating: the cognitive ability of females influences their preference for male cognitive ability