Multichannel quantum-defect theory for ultracold atom-ion collisions