Wave-breaking and generic singularities of nonlinear hyperbolic equations