Epigenetic regulation of sex ratios may explain natural variation in self-fertilization rates