What is the primary physiological change that must occur in the lungs immediately after birth for successful transition to extrauterine life?