Numerical integration of field-circuit coupled magnetoquasistatic simulation with switching elements