added check for valid percentiles in dic.fit and dic.fit.mcmc. fixes #38