How does cystic fibrosis interfere with gas exchange in the lungs?