Stress Distribution in a Nonhomogeneous Elastic Plane With Cracks