Calibration of the photometric method of heavy ion charge measurements in emulsion using a CCD camera