Adhesive contact between a rigid sphere and a thin elastic layer bonded on a rigid foundation