Hertzian and adhesive plane models of contact of two inhomogeneous elastic bodies