how did the scientific revolution lead to the enlightenment?