Training feedforward neural networks trough a parameter-estimation-based algorithm