Detection of earthquake precursors using neural networks