[2401.05993] An Opportunistic Source Synthesis Method for Smart Electromagnetic Environments