When Are Women More Effective Lawmakers Than Men?