On the Momentum-based Methods for Training and Designing Deep Neural Networks