How does electromagnet work in electromagnet crane?