A Design Method Using Discrete Particle Swarm Optimization for a Deep Neural Network Based on Nested RNS