A gray-code-based fiber optic liquid level transducer