Direct-methods for incommensurate intergrowth compounds: I. Determination of the modulation