Gravar-mail: Low-cost digital system for power quality monitoring