Damage detection in smart structures using neural networks and finite-element analyses