electromagnetic waves are produced by​