Detection and Recovery Against Deep Neural Network Fault Injection Attacks Based on Contrastive Learning