Surface waves on water of variable depth