On the Reliability of Linear Regression and Pattern Recognition Feedforward Artificial Neural Networks in FPGAs