How is oxygen, carbon dioxide, and other waste gases exchanged in the lungs and body tissues?