Large firms are increasingly digging deeper to find out precisely how profitable their practices are—and to reward partners accordingly.