Nonlocal Dipolar Interactions in Complex Geometries for Quantum Embedding