Monitoring gas exchanges in artificial lungs for prolonged circulatory and respiratory support