Magnetoquasistatic Simulation with Uncertainties and Applications in Magnet Design