Text this: Implementation of a power supply with optimized voltage and power quality control by a smart filter