Dynamics of line defects in nematic liquid crystals