Fast setup for bilinear and biquadratic interpolation over triangles