Unstable luminescence in GaN and ZnO