Identification of the flux function of nonlinear conservation laws with variable parameters