ENH: interpolate: refactor interp1d to use the same axis handling mechanism as the polyint interpolators