How McKinsey cashed in by consulting for both companies and their regulators