The relative trace formula in electromagnetic scattering and boundary layer operators | Synapse