Deconvolving tumor purity and ploidy by integrating copy number alterations and loss of heterozygosity