Ab initio study of domain structures in half-metallic CoTi1−xMnxSb and thermoelectric CoTi1−xScxSb half-Heusler alloys