Median filtering of seismic data