Correlates of sexual and maternal competence in captive gorillas