Frequency-domain displacement sensing with a fiber ring-resonator containing a variable gap