Molecular self-assemblies. 2. A computational method for the prediction of the structure of one-dimensional screw, glide, and inversion molecular aggregates and implications for the packing of molecules in monolayers and crystals