Antibacterial approaches in tissue engineering using metal ions and nanoparticles: from mechanisms to applications