Optimization of Computer Controlled X-Ray Stress Analysis