A new frequency estimation algorithm for IIoT applications and low-cost instrumentation