Neural networks and inversion of seismic data