Effects of symmetry energy on two-nucleon correlation functions in heavy-ion collisions induced by neutron-rich nuclei