Discrimination of earthquakes and underwater explosions using neural networks