Mathematical modeling of karstogenesis: an approach based on fracturing and hydrogeological processes