Automated Parameter Blocking for Efficient Markov Chain Monte Carlo Sampling