Luminescence and crystal damage in ion implanted CdS and ZnO