Method for producing a compressed version of an artificial neuronal network and device and storage medium