High-order accurate solutions of generalized Riemann problems of nonlinear hyperbolic balance laws