Experimental Investigation of Wire Electrical Discharge Machining of NdFeB Permanent Magnets with an RC-Type Machine