Influence of potential fluctuation on optical and electrical properties in GaN