An Electromagnetic Coupling Model for Side-Channel Analysis