Microfacies of Carbonate Rocks: Analysis, Interpretation and Application