A relaxation algorithm for estimating the domain of validity of feedforward neural networks