Breaking of the CDW coherence in various inhomogeneous situations