Development of a real-time algorithm for automation of the grain yield monitor calibration