Correcting bathymetry measurements for water sound speed effects using inversion theory