Efficient Learning for Hardware Security Validation Using Electromagnetic Side Channels