Chemical consequences of carbon and nitrogen implantation into LiH