Age-specific survivorship and fecundity shape genetic diversity in marine fishes