A smart measurement system for reconstructing voltage rms value over long time interval