Angular-momentum-insensitive quantum-defect theory for diatomic systems