Automatic history matching of relative permeabilities using linear modeling techniques