Stability analysis for a peri-implant osseointegration model