A simple model-based method for sloshing estimation in liquid transfer in automatic machines