Predicting Effective Permeability to Oil in Sandstone and Carbonate Reservoirs From Well-Logging Data