Threshold effect of foreign direct investment on environmental degradation