Operationalising Extended Cognition: Formal Metrics for Corporate Knowledge and Legal Accountability