Directed-energy weapon