General description of optical dichroic orientation factors for relating optical anisotropy of bulk polymer to orientation of structural units