Numerical modeling of adhesive contact between solids