Estimation of relative permeability and capillary pressure for tight formations by assimilating field production data