Time reversal of electromagnetic waves