Obtaining Relative Permeability Curve of Carbonate Reservoir by the Weighted Method