Calibration of weighing machines