Spectral curves for Gromov-Witten theories