‘ This subsection does not apply when a medical emergency exists. For the purposes of this subsection, "medical emergency" means a condition that, on the basis of the physician's good faith clinical judgment, so complicates the medical condition of a pregnant woman as to necessitate the immediate abortion of her pregnancy to avert her death or to avoid a delay that would create serious risk of substantial and irreversible impairment of a major bodily function.’