Nonlinear wave propagation in cracked media