can a midwife become a doctor