how are the alveoli designed to maximize the exchange of gases