A thermodilution method for quantification of bidirectional shunts