Role of structural defects on the half-metallic character of Co2MnGe and Co2MnSi Heusler alloys