getMzShift function

Get mass shift for target mz