Company’s distress and legality under the magnifying glass of artificial intelligence: the contribution of decision trees to identify best practices