Partially ferromagnetic electromagnet for trapping and cooling neutral atoms to quantum degeneracy