Preparation of chitosan–tannic acid coating and its anti-osteoclast and antibacterial activities in titanium implants