Third-harmonic spectroscopy of all-dielectric oligomers with both electric and magnetic resonances