Stoke have been knocked out of a cup competition for the second time in five days as they were beaten 1-0 by Crystal Palace.