Simulation-based optimal Bayesian experimental design for nonlinear systems