Enhanced performance of NiMgO-based ultraviolet photodetector by rapid thermal annealing