Risk factors for perinatal mortality in West Africa: a population‐based study of 20 326 pregnancies