Cutting of hollow profiles using electromagnetic fields