European stocks end midweek with gains as EU-US trade talks continue