Text this: Fast Method for Frequency Measurement by Rational Approximations with Application in Mechatronics