GTiff: due to latest libtiff change, updating a JPEG-in-TIFF might not work if it has not been created with the default quality value, so implement guessing of JPEG quality from the serialized tables

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@28151 f0d54148-0727-0410-94bb-9a71ac55c965