Geoacoustic inversion in shallow water - analytic and optimization methods