Half-metallic ferromagnetism in layered CdOHCl induced by hole doping