A novel technique to control ice-cream freezing by electrical characterisitcs analysis