A generalized Watterson estimator for next-generation sequencing : from trios to autopolyploids