Fundamentals of hydrostatic level measurement