Ab initio study of high pressure phase transition in GaN