Bayesian Sampling Using Stochastic Gradient Thermostats