The Targeting and Impact of Partisan Gerrymandering: Evidence from a Legislative Discontinuity