Turnout and the (effective) number of parties at the national and district levels: A puzzle-solving approach