Utility of an algorithm in differentiating spontaneous from secondary bacterial peritonitis