E-cigarette maker Juul pays $40m to North Carolina in landmark settlement