Optical spectroscopy of Pd2+-doped CsMgCl3 and CsCdCl3