Use correct field number of components in xi and gauss point interpolation functions

These were assuming the interpolated field number of components is equal to the number of geometric dimensions, but any kind of field with an arbitrary number of components could be used.