Mass-loss predictions for O and B stars as a function of metallicity