Accurate detection of sample location in isotachophoresis