Optimising error rates in programmes of pilot and definitive trials using Bayesian statistical decision theory | Synapse