NAND-SPIN-based processing-in-MRAM architecture for convolutional neural network acceleration