Screened Coulomb interactions in metallic alloys. II. Screening beyond the single-site and atomic-sphere approximations