PDFBOX-1764: optimize the calculation of function values/shading values to speed up rendering

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1538191 13f79535-47bb-0310-9956-ffa450edef68