Chemical modeling of mixed occupations and site preferences in anisotropic crystal structures: case of complex intermetallic borides.