Primary transducers of discrete fiber-optic level gauges