Electromagnets compatible with atex