Creating an online grain size estimator based on hopper sensor data and iterative hopper settling models