MASTERING ENERGY STORAGE FOR POWER QUALITY