Methods of Structural Analysis of Modulated Structures and Quasicrystals