European stocks end midweek lower