From the Two-Capacitor Paradox to Electromagnetic Side-Channel Mitigation in Digital Circuits