Dynamics of Ocean Circulation in Glacial Fjords and Ice-Shelf Cavities