Approximate solutions of generalized Riemann problems for nonlinear systems of hyperbolic conservation laws