Controllable AgNPs encapsulation to construct biocompatible and antibacterial titanium implant