Seismic well tie by aligning impedance log with inverted impedance from seismic data