Judging Gerrymandering: Improving Methods for Measuring Partisan Distortion and Its Component Parts