Field instrumentation for real-time measurement of soil-water characteristic curve