Laboratory electromagnet