A Training Framework for Optimal and Stable Training of Polynomial Neural Networks