Magnetic and structural study of high-coercivity as-cast rare-earth-iron alloys