Long-range interactions from U (1) gauge fields via dimensional mismatch