nQuire: A Statistical Framework For Ploidy Estimation Using Next Generation Sequencing