Propagation of solitary internal waves in two-layer ocean of variable depth