Optical temperature gradient measurements using speckle photography