Measuring the effect of user experience and engagement on learning using interactive simulations