Mathematical analysis of the alignment of guest molecules in solid one-dimensional inclusion compounds: the design of materials for applications in non-linear optics