Dynamics of surface electron trapping of a GaN-based transistors revealed by spatiotemporally resolved x-ray spectroscopy