Shape and Doppler correction for a towed sonar array