Microelectronics Failure Prediction and Localization from Optical and Thermal Imagery