Wind properties of Milky Way and SMC massive stars: empirical Z dependence from CMFGEN models