in what part of the lungs does gas exchange take place?