Measuring sample quality with Stein's method