Multidimensional linear interpolation for numpy arrays