Electromagnetic Signal Injection Attacks On Embedded Systems: Modeling And Detection