Electromagnetic and acoustic emissions to diagnose complex electrical and mechanical structures