Controlling the phase and power flow of electromagnetic fields