A physics-informed Bayesian optimization method for rapid development of electrical machines