Physical controls on ocean circulation beneath ice shelves revealed by numerical models