Multiscale quantum-defect theory for two interacting atoms in a symmetric harmonic trap