calculate the order parameter (along x) for the axis of molecule, not tested