Population trend alters the effects of maternal dominance rank on lifetime reproductive success in yellow baboons (Papio cynocephalus)