Judgment aggregation in nonmonotonic logic