Party organization and electoral competition