Robust Bayesian sample size determination for Bernoulli trials