Polarization reduction in half-metallic Heusler alloys: the effect of point defects and interfaces with semiconductors