Collision-Based EM Analysis on ECDSA Hardware and a Countermeasure