Identifying, understanding, and correcting technical artifacts on the sex chromosomes in next-generation sequencing data