Measures of Partisan Bias for Legislating Fair Elections