Determination of physical properties of carbonate rocks from P-wave velocity