Electromagnetic residual current operated switch