Control of spin-wave transmission by a programmable domain wall