AI Fairness: from Principles to Practice