Understanding Energy Storage in Capacitors: Principles and Applications