How and when do sanctions work? The evidence