Study on molecular rigidity and flexibility effect on mesomorphic behavior and biological activity of a substance