Relationship between the petrophysical properties and microfacies variations of carbonate rocks