Heteroclinic, homoclinic and closed orbits in the Chen system