System for simultaneous measurement of optical and electrical characteristics of samples of biological materials in solution