The Mossos d'Esquadra will deploy 14 portable infrared devices to identify drugs and measure purity in seconds.