Modeling contact between rigid sphere and elastic layer bonded to rigid substrate