RKKY interaction of magnetic impurities in nodal-line semimetals