Which internal structure is an adaptation that provided organisms with the function to perform gas exchange on land?