A new method to train Multilayer Perceptrons as Support Vector Machines