Assessment of separate contributions to perinatal mortality of infertility history and treatment: a case-control analysis