AGNfitter: A Bayesian MCMC Approach to Fitting Spectral Energy Distributions of AGNs