A Rigid Punch in Contact With a Nonhomogeneous Elastic Solid