A Globally Convergent Algorithm for Neural Network Parameter Optimization Based on Difference-of-Convex Functions