Genetic algorihms for variable through thickness residual stress evaluation