Control of ice fraction by capacitance measurement for prevention of collapse during freeze drying of food