The ZH ratio method for long-period seismic data: inversion for S-wave velocity structure