The Origin of Newton's Doctrine of Essential Qualities