Application of macroscopic balances to the identification of gross measurement errors