Determination of the rate constants of the reactions of N3 and NCl free radicals using a simulation technique