Text this: Electronic and Magnetic Investigations of Rare-Earth Tm-doped AlGaN Ternary Alloy