Stress inversion method for predicting local stress distribution of body in two-dimensional state of plane stress or strain