Nonlinear optics in the X-ray regime: nonlinear waves and self-action effects