give three practical uses of electromagnets