The Psychological Origins of the Doctrine of Double Effect