A Digital Implementation of a Flickermeter based on a Voltage Spectral Analysis