Spectroscopic investigation of the visible and mid-infrared emission in Tm- and Ho-doped YAG and YLF crystals