Thermal dependence of the positions and widths of the fluorescence lines of Cr3+ and Er3+ in YAG