Tropical curves and Gromov-Witten invariants