Contingent Pacifism and the Moral Risks of Participating in War