What problems would be faced by a terrestrial animal having gills instead of lungs?