Chemical evolution of the HC3N and N2H+ molecules in dense cores of the Vela C giant molecular cloud complex