New system cuts the energy required for training and running neural networks