Long range remanent deformations of charge-density waves in TaS3 and NbSe3