A robust pipeline for ranking carrier frequencies of autosomal recessive and X-linked Mendelian disorders