Rock physics modeling of heterogeneous carbonate reservoirs: porosity estimation and hydrocarbon detection