Effects of karst and geologic structure on the circulation of water and permeability in carbonate aquifers