How do the lungs function as excretory organs?