A {Bayesian} approach to detecting electoral manipulation