Analytical Approach to Compute the Internal Stress Field of NEMS Considering Casimir Forces