Automatically Tuned Markov Chain Monte Carlo