Directed-energy weapons that use the electromagnetic spectrum work