Study of wave propagation in water of gradually varying depth