Constraints on the neutron star equation of state from GW170817