Determination of the microstructure, energy levels and magnetic dipole transition mechanism for Tm3+ doped yttrium aluminum borate