Theoretical investigations on the growth mode of GaN thin films on an AlN(0001) substrate