Design of MTJ-Based nonvolatile logic gates for quantized neural networks. (December 2018)