Voltage sags effects on the operation of a synchrotron light source: experimental analysis and solution project