Use of indocyanine green as a test of liver function