Control of electromagnetic radiation