A Versatile X-Ray Stress Analyzer Using a Position Sensitive Detector