Detection of systematic errors in XBT data and their correction