Modeling of electromechanical devices by GPU-accelerated integral formulation