Physics-informed Machine Learning for Defect Detection in Medical Microbatteries