New limb-darkening coefficients and synthetic photometry for model-atmosphere grids at Galactic, LMC and SMC abundances