Evaluating perinatal mortality rates: effects of referral and case mix.