Effect of shape of mesogenic group on the formation of liquid crystalline phase in polymers