The third central moment of photospheric lines as a measure of velocity gradients and line shifts