Optical Fiber Transducer for Monitoring Single-Phase and Two-Phase Flows in Pipes