Optical absorption of radiation defects in alkali halide crystals implanted magnesium and silver ions