A system for automated online oil analysis