Countermeasures against Fault Injection Attacks in Neural Networks and Processors