A physical explanation of electromagnetic surface wave formulas