Active thermal inspection of composite materials with the use of neural networks