Type conversion in CdxHg1-xTe by ion beam treatment