A Framework for Regulation of RMS Voltage and Short-Duration Under and Overvoltages