Expert system for measuring Kerr effect in solutions