Bayesian sample size planning for developmental studies